package com.example.hcd.datamanage;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;

import android.content.Context;

//报销数据管理
public class ReimburseData{
	private Context context;
	//标题
	private String title;
	//报销项目
	private String projectName;
	//报销用途
	private ArrayList<ProjectChildData> reimburseUseinfoList = new ArrayList<ProjectChildData>();
	//报销合计
	private double money;
	//备注
	private String remark;
	//报销申请业务ID
	private String id;
	
	//流程ID
	private String processInstanceId;
	
	//流程定义ID
	private String processDefinitionId;
		
	//申请人ID
	private String userId;
	
	//申请时间
	private long createtime;
	
	//更新时间
	private long updatetime;
	
	//流程状态
	private String processStatus;
	
	private String imgPrefix;
	
	public String getImgPrefix()
	{
		return imgPrefix;
	}

	public void setImgPrefix(String imgPrefix)
	{
		this.imgPrefix = imgPrefix;
	}

	//流程状态值
//	流程状态值
//	尚未开始 0
//	进行中 1
//	未签收 2
//	办理中 3
//	已结束 9
	private String processStatusValue;
		
	//申请人姓名部门
	private String applicant;
	
	//金额
	private double amount =0;
	
	//文件列表
	private ArrayList<ImageFileType> imageList = new ArrayList<ImageFileType>();
	
	//理由
	private String reason;
	
	//申请人姓名
	private String reimbursementMan;
	
	//状态值
	private long status;
	private long workflowStatus;
	
	
	//是否有发票
	private String ishasReceipt;
	
	//是否有关联记录
	private String ishasRecord;
	
	private BorrowData borrow;
	//未知
	private String payee;
	private String deptName;
	private String expenseType;
	private String oaOnbusinessids;
	private String oaOnbusiness;
	
	public ReimburseData(Context context)
	{
		this.context = context;	
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public ArrayList<ProjectChildData> getReimburseUseinfoList() {
		return reimburseUseinfoList;
	}

	public void setReimburseUseinfoList(ArrayList<ProjectChildData> reimburseUseinfoList) {
		this.reimburseUseinfoList = reimburseUseinfoList;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	public String getProcessDefinitionId() {
		return processDefinitionId;
	}

	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCreatetime() {
		
		SimpleDateFormat mFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
		
		return mFormat.format(new Date(createtime));
	}

	public void setCreatetime(long createtime) {
		this.createtime = createtime;
	}

	public String getProcessStatus() {
		return processStatus;
	}

	public void setProcessStatus(String processStatus) {
		this.processStatus = processStatus;
	}

	public String getProcessStatusValue() {
		return processStatusValue;
	}

	public void setProcessStatusValue(String processStatusValue) {
		this.processStatusValue = processStatusValue;
	}

	public String getApplicant() {
		return applicant;
	}

	public void setApplicant(String applicant) {
		this.applicant = applicant;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public ArrayList<ImageFileType> getImageList() {
		return imageList;
	}

	public void setImageList(ArrayList<ImageFileType> imageList) {
		this.imageList = imageList;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public long getStatus() {
		return status;
	}

	public void setStatus(long status) {
		this.status = status;
	}

	public long getWorkflowStatus() {
		return workflowStatus;
	}

	public void setWorkflowStatus(long workflowStatus) {
		this.workflowStatus = workflowStatus;
	}

	public String getPayee() {
		return payee;
	}

	public void setPayee(String payee) {
		this.payee = payee;
	}

	public String getReimbursementMan() {
		return reimbursementMan;
	}

	public void setReimbursementMan(String reimbursementMan) {
		this.reimbursementMan = reimbursementMan;
	}

	public long getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(long updatetime) {
		this.updatetime = updatetime;
	}

	public String getIshasReceipt() {
		return ishasReceipt;
	}

	public void setIshasReceipt(String ishasReceipt) {
		this.ishasReceipt = ishasReceipt;
	}

	public String getIshasRecord() {
		return ishasRecord;
	}

	public void setIshasRecord(String ishasRecord) {
		this.ishasRecord = ishasRecord;
	}

	public BorrowData getBorrow() {
		return borrow;
	}

	public void setBorrow(BorrowData borrow) {
		this.borrow = borrow;
	}


}
